<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html">
    <body onload="checkNavigator()">

        <ui:composition template="/template.xhtml">

            <ui:define name="title">
                user login
            </ui:define>

            <ui:define name="body">
                <h:messages globalOnly="true"
                            infoClass="info"  errorClass="alert"
                            fatalClass="colorOrange" />
                <h:form>
                    <h:outputText value="Welcome, #{userLoginBean.currentUserInfo.userName}" />!
                    <h:commandLink value="#{msg.lk_logout}" action="#{userLoginBean.userLogout}" /><br/>
                    <div class="NHB" id="middleDiv" style="-webkit-transition-duration: 300ms;left: 180px;opacity: 1;right: 0px;width: auto;z-index: 1;">
                        <div class="NHB">
                            <div class="MEB LHB"><!--阴影效果-->
                                <div>
                                    <div class="NEB LHB"><!--白色背景层-->
                                        <h:panelGroup styleClass="CFB JHB">
                                            <h:outputLabel styleClass="DFB JHB">
                                                <ui:insert name="content_nav">#{msg.content_nav_funtion_nav}</ui:insert>
                                            </h:outputLabel>
                                        </h:panelGroup>
                                        <h:panelGroup styleClass="BFB JHB">
                                            <div class = "MY EY" title="Minimize"></div>
                                        </h:panelGroup>
                                        <div class="NHB" style="margin-top: 20px">
                                            <ui:insert name="content"></ui:insert>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </h:form>
            </ui:define>

        </ui:composition>

    </body>
</html>